import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react-swc'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react()],
  server: {
    proxy: {
      "/service": {
        target: "http://localhost:9003/",
        changeOrigin: true,
        ws: true // 允许websocket代理
      },
    },
  },
})
